package applet;
import java.applet.*;
import java.awt.*;
/**
 * @Author : Magic Jwz
 */
public class AppletTest extends Applet {

    int s;
    int x;
    int sum;
    @Override
    public void init()
    {
        s=Integer.parseInt(getParameter("s"));
        x=Integer.parseInt(getParameter("x"));
    }

    @Override
    public void paint(Graphics g)
    {
        sum=s+x;
        g.drawString("s="+s,x,30);
        g.drawString("x="+x,30,60);
        g.drawString("sum="+sum,60,90);
    }
}
